// app.js
import './utils/utils'
// 加载网络请求
import './utils/http'
App({
  onLaunch() {
    this.getToken()
  },
  getToken() {
    this.token = wx.getStorageSync('token')
    this.refreshToken = wx.getStorageSync('refreshToken')
  },
  setToken(token, refreshToken) {
    this.token = token
    this.refreshToken = refreshToken
    wx.setStorageSync('token', token)
    wx.setStorageSync('refreshToken', refreshToken)
  }
})
